﻿@namespace MXERP.Blazor.Components
@inherits MudComponentBase
@typeparam T

@if (Column != null)
{
    <th scope="col" class="@_classname" style="@Column.CellStyle" @attributes="@UserAttributes">
        @TableHeader()
    </th>
}

@code{

    internal RenderFragment TableHeader()
    {
        return
        @<text>
        @if (Column.HeaderTemplate != null && Column.headerContext != null)
        {
            @Column.HeaderTemplate(Column.headerContext)
        }
        else
        {
            @Column.Title
        }
        </text>;
    }
}
